import React,{useState} from 'react'
import Count2 from './components/Count2'
// import Count from './components/Count'

export default function App() {
  const [initCount,setInitCount]=useState(30)
  return (
    <div>
        <div>{initCount}</div>
        <button onClick={()=>{
            setInitCount(initCount+2)
        }}>+</button>
        <hr />
        {/* <Count></Count> */}
        <Count2 initCount={initCount}></Count2>
      
    </div>
  )
}
